package com.ddwl.wallet.dao.model;

import com.ddwl.common.dao.model.BaseModel;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.Instant;

/**
 * (OrderPayoffFlow)表实体类
 *
 * @author zach
 * @since 2020-07-24 10:16:21
 */
@Getter
@Setter
@Table(name = "sys_order_payoff_flow")
public class OrderPayoffFlow extends BaseModel {
    /**
     * 订单id
     */     
    private String orderId;
    /**
     * 结算id
     */     
    private String payoffId;
    /**
     * 分销用户ID
     */     
    private String userId;
    /**
     * 订单金额
     */     
    private String orderAmount;
    /**
     * 分润金额
     */     
    private BigDecimal profitAmount;
    /**
     * 用户佣金
     */     
    private BigDecimal userAmount;
    /**
     * 代理佣金
     */     
    private BigDecimal distAmount;
    /**
     * 区域佣金
     */     
    private BigDecimal regionAmount;
    /**
     * 结算状态(0未结算，10结算中，20结算成功，30结算失败)
     */     
    private Integer payoffStatus;
    /**
     * 结算时间
     */     
    private Instant payoffTime;
}